package org.example.myleet.p1037;

public class Solution {
    public boolean isBoomerang(int[][] points) {
        return getArea(points[0], points[1], points[2]) > 0;
    }

    private double getArea(int[] p1, int[] p2, int[] p3) {
        return Math.abs((p1[0] * (p2[1] - p3[1]) + p2[0] * (p3[1] - p1[1]) + p3[0] * (p1[1] - p2[1])) / 2.0);
    }
}
